package com.etnoe.gis.common.enums;

import lombok.Getter;

/**
 * @author 张任豪
 */
public enum LonLatType {
    WGS_84(1,"GPS坐标"),
    GCJ_02D(2,"火星坐标系"),
    BD_0911(3,"百度坐标系");

    @Getter
    private Integer value;
    @Getter
    private String remark;

    LonLatType(Integer value, String remark){
        this.value = value;
        this.remark = remark;
    }



    public static String getRemark(Integer value) {
        if (value == null) {
            return null;
        }
        LonLatType[] values = LonLatType.values();
        for (LonLatType lonLatType : values) {
            if (lonLatType.getValue().equals(value)) {
                return lonLatType.getRemark();
            }
        }
        return null;
    }

}
